package com.guaoran.interview.in2018.collection.list;

import java.util.LinkedList;
import java.util.List;

/**
 * @Author gucheng
 * @Description
 *  LinkedList 底层采用的是双向的链表结构
 *  private static class Node<E> {
 *         E item;
 *         Node<E> next;
 *         Node<E> prev;
 *
 *         Node(Node<E> prev, E element, Node<E> next) {
 *             this.item = element;
 *             this.next = next;
 *             this.prev = prev;
 *         }
 *     }
 * 2019-03-19 9:35
 */
public class LinkedListDemo {
    public static void main(String[] args) {
        List list = new LinkedList();
        for (int i = 0; i < 10; i++) {
            list.add(i);
        }

        list.add(0);
    }
}
